<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="icms.ORM.MessagePanel" %>
<%@ page import="icms.service.MessagePanelService" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>messagePanelMan</title>
</head>
 <body>

<table width="60%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
	<td height="24" colspan="4" background="skin/images/tbg.gif">&nbsp;文章panel列表&nbsp;</td>
</tr>
<tr align="center" bgcolor="#FAFAF1" height="22">
	<td width="25%">名称</td>
	<td width="25%">所属页面</td>
	<td width="30%">最后修改时间</td>
	<td width="20%">操作</td>
</tr>

<%
	MessagePanel messagePanel;
	int messagePanelID;
	MessagePanelService service=new MessagePanelService();
	List messagePanelList=service.getAllMessagePanel();
	for(int i=0;i<messagePanelList.size();i++){
		messagePanel=(MessagePanel)messagePanelList.get(i);
		messagePanelID=messagePanel.getMsgPanelID();
		String editUrl="href=\"editMessagePanel.jsp?id="+messagePanelID+"\"";
		String deleteUrl="href=\"deleteMessagePanel.jsp?id="+messagePanelID+"\"";
%>
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22" >
	<td><%= messagePanel.getMsgPanelTitle() %></td>
	<td><%= service.getPageName(messagePanel.getMsgPanelPageID()) %></td>
	<td><%= messagePanel.getMsgPanelEditTime() %></td>
	<td><a <%= editUrl %>>编辑</a> | 
		<a onclick="return confirm('删除？')" <%= deleteUrl %>>删除</a>
	</td>
</tr>
<%
	}
 %>
</table>
</body>
</html>